#ifndef I2C_SOFT_H_
#define I2C_SOFT_H_

#include "stm32f10x.h"

#define I2C_RCC RCC_APB2Periph_GPIOB
#define I2C_PORT GPIOB
#define I2C_PIN_SCL GPIO_Pin_6
#define I2C_PIN_SDA GPIO_Pin_7

void i2c_init(void);
void i2c_start(void);
void i2c_stop(void);
void i2c_sendByte(uint8_t byte);
uint8_t i2c_receiveByte(void);
void i2c_sendAck(uint8_t ackBit);
uint8_t i2c_receiveAck(void);
void i2c_ignoreAck(void);

#endif /*I2C_SOFT_H_*/
